package com.jzy.dl;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.jzy.dl.common.utils.ApplicationContextHelper;

@SpringBootApplication
//1.ApplicationContextHelper再同一个包下面,ApplicationContextHelper可以使用@Component注解
//2.ApplicationContextHelper不再同一个包内，不使用注解且再@SpringBootApplication注释下面添加@Import(value={ApplicationContextHelper.class})
//3.ApplicationContextHelper不再同一个包内，再main方法内使用ApplicationContextHelper.setApplicationContext(context);
public class DarkLineApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context=SpringApplication.run(DarkLineApplication.class, args);
		ApplicationContextHelper.setApplicationContext(context);
	}

}
